package com.util;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;


public class JPAutil {

	private EntityManagerFactory emf;
	private EntityManager em;
	
	public JPAutil(){
		emf= Persistence.createEntityManagerFactory("SistemadeHorariosPU");
		em=emf.createEntityManager();		
	}

	public EntityManagerFactory getEmf() {		
		return emf;
	}

	public EntityManager getEm() {
		return em;
	}

}
